/**
 * Created by hxsd on 2016/7/20.
 */
$(function(){
    var count=0;
    $(".last_wai .last_l").on("click",function(){
        count--;
        if(count>=0){
            $(".wai").animate({
                left:"+=172px"
            });
            //$(".shufflingRing ul").css("left","618px")
        }else {
            $(".wai").animate({
                left:"+=172px"
            },function(){
                $(".wai").css("left","-1892px")
            });
            count=5;
        }
    });
    $(".last_wai .last_r").on("click",function(){
        count++;
        if(count<6){
            $(".wai").animate({
                left:"-=172px"
            })
        }else {
            $(".wai").animate({
                left:"-=172px"
            },function(){
                $(".wai").css("left","-1032px")
            });
            count=0;
        }

    })



});